import request from '@/utils/request'

// 查询期货账户资金日报列表
export function listFutureAccountDaily(query) {
  return request({
    url: '/kylin/futureAccountDaily/list',
    method: 'get',
    params: query
  })
}

// 查询期货账户资金日报详细
export function getFutureAccountDaily(id) {
  return request({
    url: '/kylin/futureAccountDaily/' + id,
    method: 'get'
  })
}

// 新增期货账户资金日报
export function addFutureAccountDaily(data) {
  return request({
    url: '/kylin/futureAccountDaily',
    method: 'post',
    data: data
  })
}

// 修改期货账户资金日报
export function updateFutureAccountDaily(data) {
  return request({
    url: '/kylin/futureAccountDaily/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除期货账户资金日报
export function delFutureAccountDaily(ids) {
  return request({
    url: '/kylin/futureAccountDaily',
    method: 'delete',
    data: { ids: ids }
  })
}

// 导出期货账户资金日报
export function exportFutureAccountDaily(query) {
  return request({
    url: '/kylin/futureAccountDaily/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}